﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinformToolkit.Navigations
{
    /// <summary>
    /// 定义一个可以承载导航菜单的容器
    /// </summary>
    public interface IContentHost
    {
        /// <summary>
        /// 当点击菜单的时候触发
        /// </summary>
        event Action<IContentHost, WFMenuItem> MenuClicked;

        /// <summary>
        /// 执行创建菜单项的操作
        /// </summary>
        /// <param name="menuList"></param>
        void InitializeMenuList(List<WFMenuItem> menuList);

        /// <summary>
        /// 显示界面
        /// </summary>
        /// <param name="content">要显示的界面</param>
        void AddContent(IContentControl content);

        /// <summary>
        /// 隐藏界面
        /// </summary>
        /// <param name="content">要隐藏的界面</param>
        void RemoveContent(IContentControl content);
    }
}
